package cn.exrick.xboot.modules.Information.serviceimpl;

import cn.exrick.xboot.common.utils.PageUtil;
import cn.exrick.xboot.common.vo.PageVo;
import cn.exrick.xboot.common.vo.SearchVo;
import cn.exrick.xboot.modules.Information.dao.mapper.RiversSetUpMapper;
import cn.exrick.xboot.modules.Information.entity.RiversSetUp;
import cn.exrick.xboot.modules.Information.service.IRiversSetUpService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 巡河任务设置接口实现
 * @author Lyg
 */
@Slf4j
@Service
@Transactional
public class IRiversSetUpServiceImpl extends ServiceImpl<RiversSetUpMapper, RiversSetUp> implements IRiversSetUpService {


    @Autowired
    private RiversSetUpMapper riversSetUpMapper;


    public IPage<Map> selectAll(Map<String,Object> map,PageVo pageVo){
        IPage<Map> data = PageUtil.initMpPage(pageVo);
        data.setRecords(riversSetUpMapper.seleall(data,map));
        return  data;
    }
}